/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = wtc_tcm.h                                          */
/*  NOTE      =                                                    */
/*  DATE      = 2015/08/26 by songbb                               */
/*******************************************************************/

#ifndef __WTC_TCM_H_
#define __WTC_TCM_H_

int wtc_read_tcm_by_idx(Conntrack *p_st_conn
                        , Apm_packet *p_analyze_in
                        , L7session_wtc *p_st_sess
                        , L7_wtc_packet *p_st_wtc_packet
                        , int i_hint_index
                        , Frreport_body_data **pp_st_body);

int wtc_read_tcm_by_hdr(Conntrack *p_st_conn
                        , Apm_packet *p_analyze_in
                        , L7session_wtc *p_st_sess
                        , L7_wtc_packet *p_st_wtc_packet
                        , WTC_tch_header st_tch_header);

//////////////////////// for analyze direction
int wtc_read_tcm_by_idx_fad(int i_hint_index
                            , char *p_payload
                            , unsigned int ui_payload_len
                            , unsigned int *p_ui_offset);

int wtc_read_tcm_by_hdr_fad(char *p_payload
                            , unsigned int ui_payload_len
                            , unsigned int *p_ui_offset
                            , WTC_tch_header st_tch_header
                            , int *p_i_direction);

#endif
